; * lisp/battery.el (battery-bsd-apm): Explain a FIXME (bug#79040).
authorManuel Giraud <manuel@ledu-giraud.fr>
Thu, 17 Jul 2025 12:22:26 +0000 (14:22 +0200)
committerEli Zaretskii <eliz@gnu.org>
Thu, 17 Jul 2025 13:17:39 +0000 (16:17 +0300)
lisp/battery.el

index 846cf22829f6613f80f1e142fed142e04ff47f21..ee32fb744509d830ed916c46b2be30c71784c905 100644 (file)
@@ -951,7 +951,10 @@ The following %-sequences are provided:
 %h Remaining time (to charge or discharge) in hours
 %t Remaining time (to charge or discharge) in the form `h:min'"
   (let* ((os-name (car (split-string
-                        ;; FIXME: Can't we use something like `system-type'?
+                        ;; We cannot use `system-type' because some BSD
+                        ;; systems fall under the 'berkley-unix umbrella
+                        ;; and we're trying to make the distinction
+                        ;; among them here.
                         (battery--call-process-to-string "uname"))))
          (apm-flag (pcase os-name
                      ("OpenBSD" "mP")